<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:set var="sub_grant_code"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>

<c:if test="${grant_code==635}">
	<!-- 635国家基础科学人才培养基金 -->
	<c:set var="disabledClass">class="gray" disabled</c:set>
</c:if>

<div class="t_bar">项目经费预算（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">

	<tr class="t_tr">
		<td align="center" width="200">科目名称</td>
		<td class="TblHead" align="center" width="100">项目计划总经费</td>
		<td class="TblHead" align="center" width="100">其中：申请无锡市自然科学基金资助经费</td>
		<td class="TblHead" align="center" width="200">计算依据与说明</td>
		
	</tr>
	<tr class="li_1">
		<td align="left"><strong>一. 经费支出预算：</strong></td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[00]@invest_code"  value="01">
			<input type="hidden" name="budget/invest_detail/invest[00]/name" value="研究经费">
			<input type="text" name="budget/invest_detail/invest[00]/total_invest" class="gray"  
			id="total_invest_0" style="text-align:right; width:130px;" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_invest" />" 
			onpropertychange="synInfoTotal('total_invest_0')"
			/>
		</td>
		<td align="center">
		    <input type="text" name="budget/invest_detail/invest[00]/province_invest" class="gray" disabled 
		    id="province_invest_0" style="text-align:right; width:130px;" 
		    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/province_invest" />" 
		    onpropertychange="synInfoApply('province_invest_0')"/>
		</td>
		<td align="center">
			----------------
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:20px">1. 科研业务费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[01]@invest_code"  value="0101">
			<input type="hidden" name="budget/invest_detail/invest[01]/name" value="科研业务费">
			<input type="text" name="budget/invest_detail/invest[01]/total_invest" class="gray " label="科研业务费" disabled id="total_invest_1" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0101']/total_invest" />" />
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail/invest[01]/province_invest" class="gray " label="科研业务费" disabled id="province_invest_1" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0101']/province_invest" />" />
		</td>
		<td align="center">
			<span name="budget/invest_detail/invest[01]/total_detail"> 
			    -------------------
		    </span>
		</td>
	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:40px">(1) 测试、计算、分析费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[02]@invest_code" value="010101" />
			<input type="hidden" name="budget/invest_detail/invest[02]/name" value="测试/计算、分析费" />
			<input type="text"  label="项目经费预算中的项目计划总经费中的(1)测试、计算、分析费总经费" class=" valueCompare:province_invest_2:total_invest_2" name="budget/invest_detail/invest[02]/total_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010101']/total_invest" />" id="total_invest_2" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','2,3,4,5','1');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input type="text" label="申请无锡市自然科学基金资助经费中的(1)测试、计算、分析费" name="budget/invest_detail/invest[02]/province_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010101']/province_invest" />" id="province_invest_2" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','2,3,4,5','1');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail/invest[02]/total_detail"  maxlength="100"  value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010101']/total_detail" />">
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:40px">(2) 动力、能源费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[03]@invest_code" value="010102" />
			<input type="hidden" name="budget/invest_detail/invest[03]/name" value="动力、能源费" />
			<input  type="text" label="项目经费预算中的项目计划总经费中的(2)动力、能源费总经费" class=" valueCompare:province_invest_3:total_invest_3" name="budget/invest_detail/invest[03]/total_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010102']/total_invest" />" id="total_invest_3" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','2,3,4,5','1');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" label="申请无锡市自然科学基金资助经费中的(2)动力、能源费" name="budget/invest_detail/invest[03]/province_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010102']/province_invest" />" id="province_invest_3" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','2,3,4,5','1');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[03]/total_detail"  maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010102']/total_detail" />"  />
		</td>
	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:40px">(3) 会议费、差旅费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[04]@invest_code" value="010103" />
			<input type="hidden" name="budget/invest_detail/invest[04]/name" value="会议费、差旅费" />
			<input  type="text"  label="项目经费预算中的项目计划总经费中的(3)会议费、差旅费总经费" class=" valueCompare:province_invest_4:total_invest_4" name="budget/invest_detail/invest[04]/total_invest" style="text-align:right; width:130px;" id="total_invest_4" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010103']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','2,3,4,5','1');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text"  label="申请无锡市自然科学基金资助经费中的(3)会议费、差旅费" name="budget/invest_detail/invest[04]/province_invest" style="text-align:right; width:130px;" id="province_invest_4" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010103']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','2,3,4,5','1');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[04]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010103']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:40px">(4) 出版、文献检索、信息通讯费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[05]@invest_code" value="010104" />
			<input type="hidden" name="budget/invest_detail/invest[05]/name" value="出版物、文献、信息传播费" />
			<input  type="text"  label="项目经费预算中的项目计划总经费中的(4)出版、文献检索、信息通讯费" class=" valueCompare:province_invest_5:total_invest_5" name="budget/invest_detail/invest[05]/total_invest" id="total_invest_5" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010104']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','2,3,4,5','1');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text"  label="申请无锡市自然科学基金资助经费中的(4)出版、文献检索、信息通讯费" name="budget/invest_detail/invest[05]/province_invest" id="province_invest_5" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010104']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','2,3,4,5','1');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[05]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010104']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:20px">2. 实验室材料费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[06]@invest_code"  value="0102">
			<input type="hidden" name="budget/invest_detail/invest[06]/name" value="实验室材料费">
			<input type="text" name="budget/invest_detail/invest[06]/total_invest" class="gray " label="实验室材料费" disabled 
			id="total_invest_6" style="text-align:right; width:130px;"
			 value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0102']/total_invest" />" />
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail/invest[06]/province_invest" class="gray " label="实验室材料费" disabled 
			id="province_invest_6" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0102']/province_invest" />" />
		</td>
		<td align="center">
			<span name="budget/invest_detail/invest[06]/total_detail"> 
			    -------------------
		    </span>
		</td>
	</tr>
	
	<tr class="li_1">
		<td align="left" style="padding-left:40px">(1) 原材料、试剂、药品购置费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[07]@invest_code" value="010201" />
			<input type="hidden" name="budget/invest_detail/invest[07]/name" value="原材料、试剂、药品购置费" />
			<input  type="text" id="total_invest_7" label="项目经费预算中的项目计划总经费中的(1)原材料、试剂、药品购置费" class=" valueCompare:province_invest_7:total_invest_7" name="budget/invest_detail/invest[07]/total_invest" id="total_invest_7" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010201']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','7,8,9','6');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" id="province_invest_7" label="申请无锡市自然科学基金资助经费中的(1)原材料、试剂、药品购置费" 
			name="budget/invest_detail/invest[07]/province_invest"  style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010201']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','7,8,9','6');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[07]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010201']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:40px">(2)实验用动植物费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[08]@invest_code" value="010202" />
			<input type="hidden" name="budget/invest_detail/invest[08]/name" value="实验用动植物费" />
			<input  type="text" id="total_invest_8" label="项目经费预算中的项目计划总经费中的(2)实验用动植物费" class=" valueCompare:province_invest_8:total_invest_8" name="budget/invest_detail/invest[08]/total_invest" id="total_invest_8" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010202']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','7,8,9','6');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" id="province_invest_8" label="申请无锡市自然科学基金资助经费中的(2)实验用动植物费" name="budget/invest_detail/invest[08]/province_invest" id="province_invest_8" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010202']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','7,8,9','6');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[08]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010202']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:40px">(3)标本、样品费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[09]@invest_code" value="010203" />
			<input type="hidden" name="budget/invest_detail/invest[09]/name" value="标本、样品费" />
			<input  type="text" label="项目经费预算中的项目计划总经费中的（3）标本、样品费" class=" valueCompare:province_invest_9:total_invest_9" name="budget/invest_detail/invest[09]/total_invest" id="total_invest_9" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010203']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','7,8,9','6');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" label="申请无锡市自然科学基金资助经费中的（3）标本、样品费" name="budget/invest_detail/invest[09]/province_invest" id="province_invest_9" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010203']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','7,8,9','6');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail/invest[09]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010203']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:20px">3. 仪器设备费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[10]@invest_code"  value="0103">
			<input type="hidden" name="budget/invest_detail/invest[10]/name" value="仪器设备费">
			<input type="text" name="budget/invest_detail/invest[10]/total_invest" class="gray" disabled id="total_invest_10" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0103']/total_invest" />" />
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail/invest[10]/province_invest" class="gray" disabled id="province_invest_10" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0103']/province_invest" />" />
		</td>
		<td align="center">
			-------------------
		</td>
	</tr>
	<tr class="li_2">
		<td align="left" style="padding-left:40px">(1) 购置：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[11]@invest_code" value="010301" />
			<input type="hidden" name="budget/invest_detail/invest[11]/name" value="购置" />
			<input  type="text" id="total_invest_11" label="项目经费预算中的项目计划总经费中的(1)购置费" class=" valueCompare:province_invest_11:total_invest_11" name="budget/invest_detail/invest[11]/total_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010301']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','11,12','10');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" id="province_invest_11" label="申请无锡市自然科学基金资助经费中的（1）购置费" name="budget/invest_detail/invest[11]/province_invest" id="province_invest_11" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010301']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','11,12','10');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[11]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010301']/total_detail" />" />
		</td>
	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:40px">(2) 租赁费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[12]@invest_code" value="010302" />
			<input type="hidden" name="budget/invest_detail/invest[12]/name" value="租赁费" />
			<input  type="text" id="total_invest_12" label="项目经费预算中的项目计划总经费中的(2)租赁费" class=" valueCompare:province_invest_12:total_invest_12" name="budget/invest_detail/invest[12]/total_invest" id="total_invest_12" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010302']/total_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('total_invest_','11,12','10');countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" id="province_invest_12" label="申请无锡市自然科学基金资助经费中的（2）租赁费" name="budget/invest_detail/invest[12]/province_invest" style="text-align:right; width:130px;" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010302']/province_invest" />" onfocus="InitInput.setNumber(this,7,4,4)" onchange="countFund('province_invest_','11,12','10');countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[12]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='010302']/total_detail" />" />
		</td>
	</tr>
	
	<tr class="li_2">
		<td align="left" style="padding-left:20px">4. 实验室改装费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[13]@invest_code" value="0104" />
			<input type="hidden" name="budget/invest_detail/invest[13]/name" value="实验室改装费" />
			<input  type="text" id="total_invest_13" label="项目经费预算中的项目计划总经费中的4.实验室改装费" class=" valueCompare:province_invest_13:total_invest_13" name="budget/invest_detail/invest[13]/total_invest" style="text-align:right; width:130px;" onfocus="InitInput.setNumber(this,7,4,4)"value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0104']/total_invest" />" onchange="countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input  type="text" id="province_invest_13" label="申请无锡市自然科学基金资助经费中的4.实验室改装费" name="budget/invest_detail/invest[13]/province_invest" style="text-align:right; width:130px;" onfocus="InitInput.setNumber(this,7,4,4)"value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0104']/total_invest" />" onchange="countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[13]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0104']/total_detail" />" />
		</td>

	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:20px">5. 协作费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[14]@invest_code" value="0105" />
			<input type="hidden" name="budget/invest_detail/invest[14]/name" value="协作费" />
			<input type="text" id="total_invest_14" label="项目经费预算中的项目计划总经费中的5.协作费" class=" valueCompare:province_invest_14:total_invest_14" name="budget/invest_detail/invest[14]/total_invest" style="text-align:right; width:130px;" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0105']/total_invest" />" onchange="countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')"/>
		</td>
		<td align="center">
			<input type="text" id="province_invest_14" label="申请无锡市自然科学基金资助经费中的5.协作费" name="budget/invest_detail/invest[14]/province_invest" style="text-align:right; width:130px;" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0105']/province_invest" />" onchange="countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')"/>
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[14]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0105']/total_detail" />" />
		</td>

	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:20px">6.  项目劳务费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[15]@invest_code" value="0106" />
			<input type="hidden" name="budget/invest_detail/invest[15]/name" value="项目劳务费" />
			<input type="text"  label="目经费预算中的项目计划总经费中的6.项目劳务费" class=" valueCompare:province_invest_15:total_invest_15" name="budget/invest_detail/invest[15]/total_invest" style="text-align:right; width:130px;" id="total_invest_15" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0106']/total_invest" />" onchange="countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  label="申请无锡市自然科学基金资助经费中的6.项目劳务费" name="budget/invest_detail/invest[15]/province_invest" style="text-align:right; width:130px;" id="province_invest_15" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0106']/province_invest" />" onchange="countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[15]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0106']/total_detail" />" />
		</td>

	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:20px">7.  专家咨询费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[16]@invest_code" value="0107" />
			<input type="hidden" name="budget/invest_detail/invest[16]/name" value="专家咨询费" />
			<input type="text" label="目经费预算中的项目计划总经费中的7.专家咨询费" class=" valueCompare:province_invest_16:total_invest_16" name="budget/invest_detail/invest[16]/total_invest" style="text-align:right; width:130px;" id="total_invest_16" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0107']/total_invest" />" onchange="countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')"/>
		</td>
		<td align="center">
			<input type="text" label="申请无锡市自然科学基金资助经费中的7.专家咨询费" name="budget/invest_detail/invest[16]/province_invest" style="text-align:right; width:130px;" id="province_invest_16" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0107']/province_invest" />" onchange="countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')"/>
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[16]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0107']/total_detail" />" />
		</td>

	</tr>
	<tr class="li_1">
		<td align="left" style="padding-left:20px">8.  管理费：</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail/invest[17]@invest_code" value="0108" />
			<input type="hidden" name="budget/invest_detail/invest[17]/name" value="管理费" />
			<input type="text" label="目经费预算中的项目计划总经费中的8.管理费" class=" valueCompare:province_invest_17:total_invest_17" name="budget/invest_detail/invest[17]/total_invest" style="text-align:right; width:130px;" id="total_invest_17" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0108']/total_invest" />" onchange="countFund('total_invest_','1,6,10,13,14,15,16,17','0');synInfoTotal('total_invest_0')" />
		</td>
		<td align="center">
			<input type="text"label="申请无锡市自然科学基金资助经费中的8.管理费" name="budget/invest_detail/invest[17]/province_invest" style="text-align:right; width:130px;" id="province_invest_17" onfocus="InitInput.setNumber(this,7,4,4)" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0108']/province_invest" />" onchange="countFund('province_invest_','1,6,10,13,14,15,16,17','0');synInfoApply('province_invest_0')" />
		</td>
		<td align="center">
			<input type="text"  name="budget/invest_detail/invest[17]/total_detail" maxlength="100" value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='0108']/total_detail" />" />
		</td>

	</tr>
	
</table>
<br>	

<div class="t_bar">项目其他经费来源</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="li_1">
	 <td align="right" width="160">
	 	其他财政拨款：
	 </td>
	 <td>
	 	<input type="text" name="budget/funds"  style="text-align:right; width:130px;" label="其他财政拨款"  value="<x:out select="$xmlData/data/budget/funds" />" onfocus="InitInput.setNumber(this,7,4,4)" class="input_text" />
	 </td>
	</tr>
	<tr class="li_2" >
	 <td align="right">
	 	单位自筹：
	 </td>
	 <td>
	 	<input type="text" name="budget/self"  style="text-align:right; width:130px;" label="单位自筹"  value="<x:out select="$xmlData/data/budget/self" />" onfocus="InitInput.setNumber(this,7,4,4)" class="input_text" />
	 </td>
	</tr>
	<tr class="li_1">
	  <td align="right">
	 	其他来源：
	 </td>
	 <td>
	 	<input type="text" name="budget/qtly"   style="text-align:right; width:130px;"  label="其他来源" class="input_text " value="<x:out select="$xmlData/data/budget/qtly" />" onfocus="InitInput.setNumber(this,7,4,4)" />
	 </td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	
	var grant_code = $("[name='proposal/grant_code']").val();
	//649专项基金项目
	if(grant_code==649){
		$("#sub_grant").change(function(){
			
			var class1 = "";
			var class2 = "";
			
			if($("#total_invest_15").attr("class")!=null)
				class1 = $("#total_invest_15").attr("class").replace(/percentCompare:total_invest_20:\d+/,"");
			if($("#total_invest_18").attr("class")!=null)
				class2 = $("#total_invest_18").attr("class").replace(/percentCompare:total_invest_20:\d+/,"");
			$("#total_invest_15").attr("class",class1);
			$("#total_invest_18").attr("class",class2);
			
			var sub_grant_code = $("[name='proposal/sub_grant_code']").val();
			
			if(sub_grant_code==658){
				//658科学仪器基础研究专款
				$("#total_invest_15").addClass("percentCompare:total_invest_20:10");
				$("#total_invest_18").addClass("percentCompare:total_invest_20:10");
				
			} else if(sub_grant_code==650 || sub_grant_code==660 || sub_grant_code==668 || sub_grant_code==677){
				//650科学部主任基金、660科普项目、668青少年科技活动、677重点学术期刊
				$("#total_invest_15").addClass("percentCompare:total_invest_20:15");
				$("#total_invest_18").addClass("percentCompare:total_invest_20:15");
			}
		});
	}
});

function synInfoTotal(id){
	$('#total_funds').val($('#'+id).val());
	setTotalAmt()
}

function synInfoApply(id){
	$('#apply_funds').val($('#'+id).val());
}
</script>
